﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FTBS.Models.DAO;
using FTBS.Models.Entities.Concert;

namespace FTBS.Models.BLO
{
    public class PriceTicketConcertEntityBLO
    {
        PriceTicketConcertEntityDAO _priceTicketConcertEntityDao = new PriceTicketConcertEntityDAO();
        public List<PriceTicketConcertEntity> LoadPriceTickets()
        {
            var priceTickets = _priceTicketConcertEntityDao.ShowAllPriceTickets();
            return priceTickets;
        }

        public PriceTicketConcertEntity LoadPriceTicketsByTheaterId(int theaterId)
        {
            var priceTicket = _priceTicketConcertEntityDao.LoadPriceTicketsByTheaterId(theaterId).FirstOrDefault();
            return priceTicket;
        }
    }
}